using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Decisions.HL7.Message
{
    public static class HL7VersionUtil
    {

        public static string GetVersionText(HL7Version version)
        {

            switch (version)
            {

                case HL7Version.v21:
                    return "2.1";
                case HL7Version.v22:
                    return "2.2";
                case HL7Version.v23:
                    return "2.3";
                case HL7Version.v231:
                    return "2.3.1";
                case HL7Version.v24:
                    return "2.4";
                case HL7Version.v25:
                    return "2.5";
                case HL7Version.v251:
                    return "2.5.1";
                case HL7Version.v26:
                    return "2.6";
                case HL7Version.v27:
                    return "2.7";
            }
            return "Unknown";
        }

    }
}

